<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<%@ Import Namespace="ShopzillaV1.Models" %>
<%@ Import Namespace="ShopzillaV1.Controllers" %>
<%@ Import Namespace="System.Xml" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="list">
        <ol id="results">
            <% foreach (Product item in ViewData[VDConstants.ProductsByCategory] as List<Product>)
               {

                   Html.RenderPartial("ProductInList", item);

                   //if (item.Name == "Offer")
                   //{
                   //    Html.RenderPartial("OfferInProductList");
                   //}
               } %>
        </ol>
    </div>
    <%  
        Html.RenderPartial("Paging", ViewData[VDConstants.PagingInfo]);
    %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="LeftContent" runat="server">
</asp:Content>
